import ObservableObject from "../observer/observable.object"
import * as THREE from "three"
export default class Label extends ObservableObject {
  position: THREE.Vector3
  floorId: string
  sid: string
  text: string
  visible: boolean
  roomId: string
  created: Date
  modified: Date
  version: string
  constructor() {
    super()
    this.position = new THREE.Vector3()
    this.floorId = ""
    this.sid = ""
    this.text = ""
    this.visible = !1
    this.roomId = ""
    this.created = new Date()
    this.modified = new Date()
    this.version = "3.1"
  }
  copy(e) {
    this.floorId = e.floorId
    this.sid = e.sid
    this.text = e.text
    this.visible = e.visible
    this.roomId = e.roomId
    this.created = e.created
    this.modified = e.modified
    this.position.copy(e.position)
    this.version = e.version
    this.commit()
    return this
  }
}
